<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUseraTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('usera', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->increments('id');
            $table->integer('phone')->comment('phone');
            $table->integer('open_id')->comment('用户唯一标识符');
            $table->integer('password')->comment('密码');
            $table->string('background_picture', 255)->comment('背景图片');
            $table->string('head_portrait', 255)->comment('头像');
            $table->integer('tag_id')->comment('标签id');
            $table->string('gender', 20)->comment('性别');
            $table->string('study', 100)->comment('学习');
            $table->string('major', 100)->comment('专业');
            $table->string('education', 50)->comment('学历');
            $table->integer('graduation_date')->comment('毕业日期');
            $table->string('mail', 50)->comment('邮箱');
            $table->integer('integral')->comment('积分');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('usera');
    }
}
